<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="zhangfn" uri="http://github.com/zhangkaitao/tags/zhang-functions" %>
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/css/bootstrap-responsive.css" />
    
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/jquery.js"></script>
    
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/bootstrap.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/ckform.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/common.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/showdate.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/laydate/laydate.js"></script>
   	<script src="${pageContext.request.contextPath}/static/js/zoom.js"></script>
   		<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/jquery-1.6.2.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/static/js/Validform_v4.0_min.js"></script>
	 <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/style2.css" type="text/css" media="all" />
     <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/demo.css" type="text/css" media="all" />
    
</head>
<body class="main" class="wraper">
<form:form method="post" commandName="ticket" class="registerform">
<form:hidden path="version"/>
<table class="table table-bordered table-hover definewidth m10" style="margin-left:3%;margin-top:2%;">
    <tr><td colspan="2"><strong>代金券详情</strong></td><tr>
    <tr>  
        <td width="10%" class="tableleft" >*体验券名称 </td>
        <td><form:input path="name" style="height: 41px; width: 500px" datatype="*"  nullmsg="体验券名称不能为空！"/></td>     
    </tr>
    <tr> 
        <td width="10%" class="tableleft" >*金额</td>
        <td><form:input path="money" style="height: 41px; width: 500px" datatype="n"  nullmsg="金额不能为空！"/></td>  
    </tr>
    <tr>
        <td width="10%" class="tableleft" >*有效期开始时间</td>
      <%--   <td><form:input path="startTimeStr" id="time1"  onClick="return Calendar('time1');" class="text_time" /></td>
         --%>    <td><form:input path="startTime" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" class="laydate-icon" datatype="*"  nullmsg="有效期开始时间不能为空！"/></td>
        
    </tr>
     <tr>
        <td width="10%" class="tableleft" >*有效期结束时间</td>
<%--         <td><form:input path="expiryTimeStr" id="time2"  onClick="return Calendar('time2');" class="text_time" /></td>
 --%>        <td><form:input path="expiryTime" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" class="laydate-icon" datatype="*"  nullmsg="有效期结束时间不能为空！" /></td>
    </tr>
    <tr>
        <td width="10%" class="tableleft" >*代金券类型 </td>
        <td>
        	<div style="margin:0 auto;">
        		 <form:select path="type">                    
                   <form:option value="0">现金券</form:option>  
                   <form:option value="1">折扣券</form:option>  
                 </form:select>  	            
             </div> 
        </td>
    </tr>
    <tr>
        <td width="10%" class="tableleft" >代金券状态 </td>
        <td>
        	<div style="margin:0 auto;">
        		 <form:select path="state">                    
                   <form:option value="0">未使用</form:option>  
                   <form:option value="1">已使用</form:option>  
                 </form:select>  	            
             </div> 
        </td>
    </tr>
</table>
<form:button  class="btn btn-warning btn-block" style="margin:20px">${op }</form:button>   
<!-- <button>详情</button> -->
</form:form>
</body>
<script type="text/javascript">
$(function(){
	//$(".registerform").Validform();  //就这一行代码！;
	
	$(".registerform").Validform({
		tiptype:1
	});
})
</script>
</html>
<script>
function jump(){
 window.location.href="placardQuery.html";
}
</script>